<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("cgs:cgsbusinessbooktime:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("cgs:cgsbusinessbooktime:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("cgs:cgsbusinessbooktime:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default" align="center">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal" style="width:70%!important;">
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">开始时间</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.startTime" placeholder="开始时间"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">结束时间</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.endTime" placeholder="结束时间"/>
                    </div>
                </div>
	            <div class="form-group">
	                <div class="col-sm-2 control-label" style="width: 10%;">预约数量</div>
	                <div class="col-sm-10" style="width: 40%;">
	                    <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.bookNum" placeholder="预约数量"/>
	                </div>
                    <div class="col-sm-2 control-label" style="width: 10%;">排序号</div>
                    <div class="col-sm-10" style="width: 40%;">
                        <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.sort" placeholder="排序号"/>
                    </div>
                </div>
            <div class="form-group">
            	<div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>


    <!--预览-->
    <div class="modal fade" id="preview_Modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width: 660px">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="illegalLocationLabel">
                    <!--{{title}}-->
                    预约时间详情
                </h4>
            </div>
            <div class="modal-body">
                <div class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-2 control-label" style="width: 20%;">开始时间</div>
                        <div class="col-sm-10" style="width: 80%;">
                            <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.startTime" placeholder="开始时间" readonly/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" style="width: 20%;">结束时间</div>
                        <div class="col-sm-10" style="width: 80%;">
                            <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.endTime" placeholder="结束时间" readonly/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" style="width: 20%;">预约数量</div>
                        <div class="col-sm-10" style="width: 80%;">
                            <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.bookNum" placeholder="预约数量" readonly/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" style="width: 20%;">排序号</div>
                        <div class="col-sm-10" style="width: 80%;">
                            <input type="text" class="form-control" width="80%" v-model="cgsBusinessBookTime.sort" placeholder="排序号" readonly/>
                        </div>
                    </div>
                </div>
            </div>
            <!--<div class="modal-footer">-->
            <!--<input type="button" class="btn btn-primary" value="确定"/>-->
            <!--<button type="button" class="btn btn-warning" data-dismiss="modal">关闭</button>-->
            <!--</div>-->
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

</div>

<script src="${request.contextPath}/statics/js/modules/cgs/cgsbusinessbooktime.js?_${.now?long}"></script>
</body>
</html>